// 引入
import Vue from 'vue'
import VueRouter from 'vue-router'
import ChinaDog from '../views/ChinaDog.vue'
import Hutchison from '../views/Hutchison.vue'
import ShepherdDog from '../views/ShepherdDog.vue'
import AutumnDog from '../views/AutumnDog.vue'
import Dogson from '../views/Dogson.vue'
import Mod from '../views/Mod.vue'
import Myde from '../views/Myde.vue'

// 2、调用 去注册这个插件
Vue.use(VueRouter)
// 3、创建路由实例
const router = new VueRouter({
  routes: [
    {
      // 如果路径是 / ，那就跳到 /find
      path: '/',
      redirect: '/china',
    },
    {
      path: '/china',
      component: ChinaDog,
      
    },
    {
      path: '/hutch',
      component: Hutchison,
      children: [
        {
          path: 'dogson',
          component:Dogson,
        }
      ]
      
    },
    {
      path: '/sheph',
      component:ShepherdDog,
      
    },
    {
      path: '/autum',
      component:AutumnDog,
      
    },
    {
      path: '/mod',
      component:Mod,
      
    },
    {
      path: '/myde',
      component:Myde,
      
    },
    

  ]
})
// 4、对外暴露路由
export default router

